@model MobileWebsiteGenerator.Entities.WebsitePages
<script type="text/javascript">
    $(document).ready(function () {
        updatePage();
        $("#isHebrew").change(function () {
            updatePage();
        });
    });
    function updatePage() {
        if ($("#isHebrew").is(':checked')) {
            $("#HTitle").show("slow");
            $("label[for=HTitle],#HTitle").show("slow");
            $("#HContent_tbl").show("slow");
            $("label[for=HContent]").show("slow");
            $("#ETitle").hide("slow");
            $("label[for=ETitle],#ETitle").hide("slow");
            $("#EContent_tbl").hide("slow");
            $("label[for=EContent]").hide("slow");

        }
        else {
            $("#HTitle").hide("slow");
            $("lable[for='HTitle']").hide("slow");
            $("label[for=HTitle],#HTitle").hide("slow");
            $("#HContent_tbl").hide("slow");
            $("label[for=HContent]").hide("slow");
            $("#ETitle").show("slow");
            $("label[for=ETitle],#ETitle").show("slow");
            $("#EContent_tbl").show("slow");
            $("label[for=EContent]").show("slow");
        }
    }
</script>
@* This partial view defines form fields that will appear when creating and editing entities *@
Hebrew ? <input type="checkbox" id="isHebrew" name="isHebrew" />
<div class="editor-label">
    @Html.LabelFor(model => model.ETitle)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.ETitle)
    @Html.ValidationMessageFor(model => model.ETitle)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.HTitle)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.HTitle)
    @Html.ValidationMessageFor(model => model.HTitle)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.EContent)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.EContent)
    @Html.ValidationMessageFor(model => model.EContent)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.HContent)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.HContent)
    @Html.ValidationMessageFor(model => model.HContent)
</div>

